package com.team.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
    * 行程详情表
    */
@Data
@TableName(value = "t_journey")
public class Journey {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 产品外键
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 行程名称
     */
    @TableField(value = "journey_name")
    private String journeyName;

    /**
     * 出发地
     */
    @TableField(value = "start_address")
    private String startAddress;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_JOURNEY_NAME = "journey_name";

    public static final String COL_START_ADDRESS = "start_address";
}